package com.chinasoft.cr.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.chinasoft.cr.pojo.PageItem;
import com.chinasoft.cr.pojo.User;


import java.util.List;

public interface UserService {
    List<User> getById(long id);

    List<User> getAllUsers();

    List<User> getPage(Integer current, Integer size);

    PageItem<User> getPage2(Integer pageNum, Integer pageSize, User query);

    Boolean deleteUser(Long id);

    Boolean updateUser(User user);

    User checkUser(User user, String type);

    User getUser(Long userId);

    int UserCount();

    int save(User params);


}
